package com.cn;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;

import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import tk.mybatis.spring.annotation.MapperScan;

@SpringCloudApplication
@MapperScan(basePackages = {"com.cn.ahuniversity.dao"})
public class DatabeseApplication {
    public static void main(String[] args) {
        SpringApplication.run(DatabeseApplication.class, args);
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
